package cn.com.nes.site.entity.bo.workorder;

import cn.com.nes.site.entity.bo.PageBO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 添加工单入参
 *
 * @author lux
 * @date 2018-11-08 21:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class WorkOrderBO extends PageBO {
    private String type;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 房屋id
     */
    private Long houseId;

    private String houseUUid;

    private BigDecimal longitude;

    private BigDecimal latitude;

    private String houseNumber;
    private String xzqhdm;
    /**
     * 联系人电话
     */
    private String phone;
    /**
     * 联系人姓名
     */
    private String customerName;


    private String clienteleId;
    /**
     * 工单任务类型id   31是
     */
    private String workTypeId;

    /**
     * 工单任务类型id   31是
     */
    private long WorkOrderId;
    /**
     * 紧急程度id
     */
    private Integer emergencyDegreeId;
    /**
     * 维修设备id
     */
    private String equipmentIds;
    /**
     * 维修设备ids
     */
    private String equipmentIdsStr;
    /**
     * 描述
     */
    private String desc;
    /**
     * 业务支持人员id
     */

    private String maintainId;


    private Integer handleMode;

    private String erroCode;

    private Long handleId;

    /**
     * 工单地址
     */
    private String address;

    /**
     * 业务工单id 如果是12345业务工单所触发的添加工单
     */
    private Integer questionId;

    /**
     * 掌上新村业务工单id
     */
    private String zsxcWorkId;

    /**
     * 设备质保 质保内（01）质保外（02）、不选（空白字符串）
     */
    private String sb_sfzb;

    /**
     * 工单问题分类 字典表AppealCategory其中 01代表故障类、02代表售后服务类
     */
    private String appealCategory;

    /**
     * 工单问题分类细类   字典表WorkOrderEvaluation
     */
    private String evaluation;


    /**
     * 约定上门时间-开始
     */
    private Date agreedDoorstepTimeStart;

    /**
     * 约定上门时间-结束
     */
    private Date agreedDoorstepTimeEnd;


    /**
     * 咨询类型
     */
    private String consultType;

    /**
     * 诉求内容
     */
    private String appealContent;


    private Integer distance;
    //维修类型

    private String repairType;
    // 维修价格

    private BigDecimal repairPrice;
    //起步距离

    private BigDecimal baseDistance;
    //每公里价格

    private BigDecimal pricePerKM;
    //是否往返, 0否1是

    private Integer roundTrip;
    // 故障是否修理完毕, 0-已修好, 1-未修好, 2-等待配件

    private Integer repairResult;
    //是否收费, 0-未收费, 1-收费

    private Integer charged;
    //  备件id

    private String partId;
    //冷媒类型

    private String refrigerantType;
    //冷媒总价格

    private BigDecimal refrigerantPrice;
    //冷媒数量

    private BigDecimal refrigerantAmount;
    //责任方

    private String personliable;
    //工单关闭原因

    private String closingreason;
    //配件申请单id

    private String sparePartApplicationId;
    //支付状态,0-待支付,1-已支付
    private Integer paymentState;

    private String verificationCode;

    private String companyId;

    private long pWorkOrderId;
}
